﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="SmartHRMS.Model"
        assembly="SmartHRMS.Model">

  <class name="SmartHRMS.Model.Company.Company,SmartHRMS.Model" table="HR_Company" lazy="false">

    <id name="CompanyId" column="CompanyId" type="guid">
      <generator class="guid" />
    </id>

    <property name="CompanyName">
      <column name="CompanyName"
                    not-null="true" sql-type="nvarchar(250)" length="250" />
    </property>

    <property name="EstablishDate">
      <column name="EstablishDate"
                    not-null="true" sql-type="nvarchar(250)" length="250" />
    </property>

    <property name="Mission">
      <column name="Mission"
                    not-null="false" sql-type="nvarchar(MAX)" />
    </property>

    <property name="Vision">
      <column name="Vision"
                    not-null="false" sql-type="nvarchar(MAX)" />
    </property>

    <property name="Slogan">
      <column name="Slogan"
                    not-null="false" sql-type="nvarchar(MAX)" />
    </property>

    <property name="Logo">
      <column name="Logo"
                    not-null="false" sql-type="byte" />
    </property>


    <component name="CompanyAddress" class="SmartHRMS.Model.Company.CompanyAddress,SmartHRMS.Model">

      <property  name="Country">
        <column name="Country"
                not-null="false" sql-type="nvarchar(50)" length="50" />
      </property>

      <property name="Street">
        <column name="Street"
                not-null="false" sql-type="nvarchar(50)" length="50"/>
      </property>

      <property name="HouseNumber">
        <column name="HouseNumber"
                not-null="false" sql-type="nvarchar(50)" length="50"/>
      </property>

      <property name="City">
        <column name="City"
                not-null="false" sql-type="nvarchar(50)" length="50"/>
      </property>

      <property name="State">
        <column name="State"
                not-null="false" sql-type="nvarchar(50)" length="50" />
      </property>

      <property name="PostCode">
        <column name="PostCode"
                not-null="false" sql-type="nvarchar(15)" length="50" />
      </property>

      <property name="OfficePhone">
        <column name="OfficePhone"
                not-null="false" sql-type="nvarchar(15)" length="15" />
      </property>

      <property name="Fax">
        <column name="Fax"
                not-null="false" sql-type="nvarchar(15)" length="15" />
      </property>

      <property name="Email">
        <column name="Email"
                not-null="false" sql-type="nvarchar(250)" length="250" />
      </property>

      <property name="Website">
        <column name="Website"
                not-null="false" sql-type="nvarchar(250)" length="250" />
      </property>

    </component>

  </class>

</hibernate-mapping>